//
//  SCAlertView.h
//  SCFoundationKit
//
//  Created by Chao Sheng on 2023/10/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum {
    SCAlertStyleLight = 0,
    SCAlertStyleDark
}SCAlertStyle;

/// 通用弹窗
@interface SCAlertView : UIView

@property (nonatomic, assign) SCAlertStyle style;

/// 是否点击按钮后就隐藏弹窗，默认ture
@property (nonatomic, assign) BOOL btnClickHidden;

- (void)showAlertTitle:(NSString*)title
                Content:(NSString*)content
                Buttons:(NSArray*)buttons
         ClickCallBack:(void(^)(NSInteger index))callback;

- (void)showAlertTitle:(NSString*)title
                CustomView:(UIView*)customView
                Buttons:(NSArray*)buttons
         ClickCallBack:(void(^)(NSInteger index))callback;

- (void)hide;

@end

NS_ASSUME_NONNULL_END
